<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>添加商品</title>
</head>
<body>
    <center>
        @include('shop.menu')
        <table border="1" width="860px">
            <tr>
                <th>商品编号</th>
                <th>商品名称</th>
                <th>单价</th>
                <th>商品库存</th>
                <th>商品进货时间</th>
                <th>操作</th>
            </tr>
            @foreach($list as $v)
                <tr align="center">
                    <td>{{$v->id}}</td>
                    <td>{{$v->gname}}</td>
                    <td>{{$v->gprice}}</td>
                    <td>{{$v->gstore}}</td>
                    <td>{{$v->gtime}}</td>
                    <td>
                        <a href="{{url('shop')}}/{{$v->id}}">购买</a>
                    </td>
                </tr>
            @endforeach
        </table>
    </center>
</body>
</html>